package com.nulldev.util.uri.server;

public enum RequestType {
	GET("GET"), POST("POST");

	private final String raw;
	private RequestType(final String raw) {
		this.raw = raw;
	}
	
	public static RequestType fetch(final String REQUEST_TYPE) {
		for (final RequestType type : values()) {
			if (type.raw.equals(REQUEST_TYPE)) {
				return type;
			}
		}
		return GET;
	}
}
